package com.wesley.proxy;

/**
 *
 *
 *  聚合实现 ，实现多个接口，可以灵活使用
 *
 *
 * @author:wesley
 */
public class Client {

    public static void main(String[] args){
        Tank tank = new Tank();
//        TankLogProxy logProxy = new TankLogProxy();
        TankTimeProxy tankTimeProxy = new TankTimeProxy(tank);
        TankLogProxy logProxy = new TankLogProxy(tankTimeProxy);
        logProxy.move();
    }

}
